package tds.model26;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Market
 * @Description 市场部
 * @author tds
 * @Date 2020/2/7 21:48
 * @version 1.0.0
 */
public class Market implements Department {

    private Mediator mediator;

    private String name;

    public Market(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
        mediator.register(name, this);
    }

    @Override
    public void selfAction() {
        System.out.println("市场部正在推销研发部开发的产品，需要资金支援！！！");
        mediator.command("finacial");
    }

    @Override
    public void outAction() {
        System.out.println("市场部正在将客户资料上报。。。");
    }
}
